const regPrice = /(\d+)\.(\d{2})/;

export function splitAmount(price) {
    const yuan = regPrice.exec(price)[1];
    const odd = regPrice.exec(price)[2];
    return { yuan, odd };
}
